import { IPSAppPortletCat } from './ipsapp-portlet-cat';
import { IPSAppDataEntity } from '../dataentity/ipsapp-data-entity';
import { IPSControl } from '../../control/ipscontrol';
import { IPSModelObject } from '../../ipsmodel-object';

/**
 *
 * @export
 * @interface IPSAppPortlet
 */
export interface IPSAppPortlet extends IPSModelObject {
  /**
   * 代码标识
   * @type {string}
   */
  codeName: string;

  /**
   * 应用实体对象
   *
   * @type {IPSAppDataEntity}
   */
  getPSAppDataEntity(): IPSAppDataEntity | null;

  /**
   * 应用门户部件分类
   *
   * @type {IPSAppPortletCat}
   */
  getPSAppPortletCat(): IPSAppPortletCat | null;

  /**
   * 控件对象
   *
   * @type {IPSControl}
   */
  getPSControl(): IPSControl | null;

  /**
   * 支持应用全局数据看板
   * @type {boolean}
   */
  enableAppDashboard: boolean;

  /**
   * 支持实体数据看板
   * @type {boolean}
   */
  enableDEDashboard: boolean;
}
